CC=g++
CFLAGS=-c -Wall -Isal -Ilinux -Icommon
DEBUG=	-O0 -g
LDFLAGS= -lpthread
SOURCES=linux/ThreadManager.cpp linux/Main.cpp common/CallOut.cpp  common/Config.cpp  common/GameDriver.cpp  common/Interactive.cpp  common/LpcScanner.cpp
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=driver

all: $(SOURCES) $(EXECUTABLE)
	
$(EXECUTABLE): $(OBJECTS) 
	$(CC) $(LDFLAGS) $(OBJECTS) -o $@

.cpp.o:
	$(CC) $(DEBUG) $(CFLAGS) $< -o $@
    
clean:
	rm -f driver $(OBJECTS)


